package com.xh.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Name TestController
 * @Description
 * @Author wen
 * @Date 2020-06-08
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/{id}")
    public String test(@PathVariable("id") Long id){
        return "SUCCESS" + "_" + id;
    }
}
